package com.myplans.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Widget;
import com.myplans.client.presenter.HomePresenter.Display;

public class HomeView extends Composite implements HasText, Display {

	private static HomeViewUiBinder uiBinder = GWT
			.create(HomeViewUiBinder.class);

	interface HomeViewUiBinder extends UiBinder<Widget, HomeView> {
	}

	public HomeView() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiField 
	FlowPanel categoriesPanel;
	@UiField
	FlowPanel plansPanel;
	@UiField
	FlowPanel recommendedPlansPanel;
	
	public FlowPanel getRecommendedPlansPanel() {
		return recommendedPlansPanel;
	}

	public HomeView(String firstName) {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@Override
	public String getText() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setText(String arg0) {
		// TODO Auto-generated method stub
		
	}

	public FlowPanel getPlansPanel() {
		return plansPanel;
	}
	
	public FlowPanel getCategoriesPanel() {
		return categoriesPanel;
	}

}
